package com.uranus.pojo;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;

@Entity
@Table(name = "taste")
@DynamicUpdate(true)
public class Taste {

	private Integer id;
	private String taste;
	
//	private Set<User> userFavors = new HashSet<User>();
//	private Set<User> userDiets = new HashSet<User>();
//	
//	@ManyToMany(mappedBy = "tasteFavors", cascade = {CascadeType.PERSIST, CascadeType.MERGE}, fetch=FetchType.LAZY)
//	public Set<User> getUserFavors() {
//		return userFavors;
//	}
//	public void setUserFavors(Set<User> userFavors) {
//		this.userFavors = userFavors;
//	}
//	@ManyToMany(mappedBy = "tasteDiets", cascade = {CascadeType.PERSIST, CascadeType.MERGE}, fetch=FetchType.LAZY)
//	public Set<User> getUserDiets() {
//		return userDiets;
//	}
//	public void setUserDiets(Set<User> userDiets) {
//		this.userDiets = userDiets;
//	}
	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTaste() {
		return taste;
	}
	public void setTaste(String taste) {
		this.taste = taste;
	}
	
	
}
